# HG changeset patch # User Paul Boddie # Date 1287962436 -7200 # Node ID a19ba5e3e9f06ff5d7f785c3ebea5bf22e67c698 # Parent 7e8dc67bc2a1768431dbb6b987fa76883ff1b58b Converted the templates to XHTML, fixing   entities and fixing well-formedness issues. Added some support for SVG-based graphs, requiring additional data from the graph "command" in hgweb. diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/branches.tmpl --- a/themes/mercurialweb/branches.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/branches.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -15,7 +15,7 @@ >
  • Branches
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}
    diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/changelog.tmpl --- a/themes/mercurialweb/changelog.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/changelog.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -14,7 +14,7 @@ >
  • Tags
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}
    diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/changeset.tmpl --- a/themes/mercurialweb/changeset.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/changeset.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -14,7 +14,7 @@ >
  • Tags
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}
    diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/error.tmpl --- a/themes/mercurialweb/error.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/error.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -14,7 +14,7 @@ >
  • Tags
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}
    diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/fileannotate.tmpl --- a/themes/mercurialweb/fileannotate.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/fileannotate.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -14,7 +14,7 @@ >
  • Tags
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}
    diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/filediff.tmpl --- a/themes/mercurialweb/filediff.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/filediff.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -14,7 +14,7 @@ >
  • Tags
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}
    diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/filerevision.tmpl --- a/themes/mercurialweb/filerevision.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/filerevision.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -14,7 +14,7 @@ >
  • Tags
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}
    diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/graph.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/graph.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -0,0 +1,48 @@ +{header} +{repo|escape} (graph) + + + + + + +

    {repo|escape}

    + +

    Graph

    + +
    {changenav%graphpagerlink}
    + +
    +
      +{svgdata%graphlabel} +
    + + +{svgdata%graphnode} + + +
    + +
    {changenav%graphpagerlink}
    + +{footer} diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/graphedge.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/graphedge.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -0,0 +1,1 @@ + diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/graphlabel.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/graphlabel.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -0,0 +1,1 @@ +
  • {desc|strip|firstline|escape} {user} {age} {branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}
  • diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/graphnode.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/graphnode.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -0,0 +1,2 @@ + +{edges%graphedge} diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/header.tmpl --- a/themes/mercurialweb/header.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/header.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -1,5 +1,4 @@ - - + diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/index.tmpl --- a/themes/mercurialweb/index.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/index.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -18,7 +18,7 @@ Description Contact Last change -   +   diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/manifest.tmpl --- a/themes/mercurialweb/manifest.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/manifest.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -14,7 +14,7 @@ >
  • Tags
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}
    diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/map --- a/themes/mercurialweb/map Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/map Mon Oct 25 01:20:36 2010 +0200 @@ -1,5 +1,5 @@ default = 'summary' -mimetype = 'text/html; charset={encoding}' +mimetype = 'application/xhtml+xml; charset={encoding}' branches = branches.tmpl changelog = changelog.tmpl @@ -8,6 +8,7 @@ fileannotate = fileannotate.tmpl filediff = filediff.tmpl filerevision = filerevision.tmpl +graph = graph.tmpl header = header.tmpl footer = footer.tmpl index = index.tmpl @@ -28,6 +29,10 @@ shortlogentry = shortlogentry.tmpl tagentry = tagentry.tmpl +graphedge = graphedge.tmpl +graphlabel = graphlabel.tmpl +graphnode = graphnode.tmpl + archiveentry = '{type|escape} ' branchlabel = '{name} ' branchtag = '{name} ' @@ -36,6 +41,7 @@ changesetlink = '{rev}:{node|short} ' changesetfiledifflink = '{rev}:{node|short} ' filerevlink = '{rev}:{node|short} ' +graphpagerlink = '{label|escape} ' inbranchlabel = '{name} ' inbranchtag = '{name} ' shortlogpagerlink = '{label|escape} ' diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/search.tmpl --- a/themes/mercurialweb/search.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/search.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -14,7 +14,7 @@ >
  • Tags
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}
    diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/shortlog.tmpl --- a/themes/mercurialweb/shortlog.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/shortlog.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -14,7 +14,7 @@ >
  • Tags
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}
    diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/static/style-mercurialweb.css --- a/themes/mercurialweb/static/style-mercurialweb.css Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/static/style-mercurialweb.css Mon Oct 25 01:20:36 2010 +0200 @@ -420,3 +420,32 @@ font-size: 120%; } + +/* Graph views. */ + +div.graph { + position: relative; +} + +ul.graph { + list-style: none; + padding: 0; +} + +.graphlabel { + white-space: nowrap; +} + +.graphcolour-1 { fill: #d00; } +.graphcolour-2 { fill: #dd0; } +.graphcolour-3 { fill: #0d0; } +.graphcolour-4 { fill: #0dd; } +.graphcolour-5 { fill: #00d; } +.graphcolour-6 { fill: #d0d; } + +line.graphcolour-1 { stroke: #d00; stroke-width: 0.1; } +line.graphcolour-2 { stroke: #dd0; stroke-width: 0.1; } +line.graphcolour-3 { stroke: #0d0; stroke-width: 0.1; } +line.graphcolour-4 { stroke: #0dd; stroke-width: 0.1; } +line.graphcolour-5 { stroke: #00d; stroke-width: 0.1; } +line.graphcolour-6 { stroke: #d0d; stroke-width: 0.1; } diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/summary.tmpl --- a/themes/mercurialweb/summary.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/summary.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -14,7 +14,7 @@ >
  • Tags
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}
    diff -r 7e8dc67bc2a1 -r a19ba5e3e9f0 themes/mercurialweb/tags.tmpl --- a/themes/mercurialweb/tags.tmpl Fri Jul 16 01:21:02 2010 +0200 +++ b/themes/mercurialweb/tags.tmpl Mon Oct 25 01:20:36 2010 +0200 @@ -14,7 +14,7 @@ >
  • Tags
  • Files
  • - Search  + Search  {sessionvars%hiddenformentry}